package cn.mst.vrs.controller.admin.pay.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 支付单新增/修改 Request VO")
@Data
public class PaySaveReqVO {

    @Schema(description = "订单主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29354")
    @NotNull(message = "订单主键ID不能为空")
    private Long orderId;

    @Schema(description = "应付金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "应付金额不能为空")
    private BigDecimal dueAmount;

    @Schema(description = "实付金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "实付金额不能为空")
    private BigDecimal realAmount;

    @Schema(description = "支付状态（0：等待中，1：成功，2：失败）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "支付状态（0：等待中，1：成功，2：失败）不能为空")
    private Integer status;

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27362")
    private Long id;

}